<?php

require_once '../../../config/config.php';

$arr = explode(',', $_POST['items']);
foreach ($arr as $id) {
    $sql = 'UPDATE visiteurs SET statut_compte = 2 WHERE id = "' . $id . '"';
    mysql_query($sql) or die(mysql_error);
}

echo '1';
?>
